{# 文章单页 #}
{% extends 'layout/base.html' %}
{% block title %} {{article.title}} {% endblock%}


{% block main %}

<div class="row justify-content-center">
    <div class="col-md-8">
        <h1 class="">{{article.title}}</h1>
        <img style="width: 100%;" src="{{ article.cover_url }}" class="mr-3" alt="cover_url">
        <!-- <h2> {{article.title}} </h2> -->
        <div>
            <a href="{{ url_for('main.user_page', uid=article.user_id) }}">{{article.author.username}}</a> |
            <span style="color:#898989">{{ article.created_time }}</span>
        </div>
        <hr>
        <div>
            <p>
                {{article.content}}
            </p>
        </div>

        <hr>
        <div style="font-size: x-small;">
            {% for t in article.tags.all() %}
            <span> {{t.name}} </span>
            {% endfor %}
        </div>

        <!-- ================================================ -->
        <hr>
        <div class="comment">

        </div>
    </div>
</div>



{% endblock%}